/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package introse;

/**
 *
 * @author Rommel
 */
public class viewTransactionProduct extends javax.swing.JPanel {

    /**
     * Creates new form viewTransactionProduct
     */
    public viewTransactionProduct(String productName, int quantity, float totalPrice) {
        initComponents();
        
        gasulLabel.setText(productName);
        quantityLabel.setText(Integer.toString(quantity));
        priceLabel.setText(Float.toString(totalPrice) + " PHP");
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        quantityLabel = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        priceLabel = new javax.swing.JLabel();
        gasulLabel = new javax.swing.JLabel();

        setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jLabel1.setText("Product:");
        add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 11, -1, -1));

        jLabel2.setText("Quantity:");
        add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 10, -1, -1));

        quantityLabel.setText("0");
        add(quantityLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 10, -1, -1));

        jLabel4.setText("Total Price:");
        add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 10, -1, -1));

        priceLabel.setText("0");
        add(priceLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(356, 11, -1, -1));

        gasulLabel.setText("Gasul");
        add(gasulLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 10, -1, -1));
    }// </editor-fold>//GEN-END:initComponents
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel gasulLabel;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel priceLabel;
    private javax.swing.JLabel quantityLabel;
    // End of variables declaration//GEN-END:variables
}
